#include<stdio.h>
int main()
{
	int i,n;
	double average,sum;
	int a[10];
	printf ("enter n:");
	scanf("%d",&n);
	if(n>=1 && n<=10){
		printf("enter %d integers:",n);
		for(i=0;i<n;i++){
			scanf("%d",&a[i]);
		}
		sum=0;
		for(i=0;i<n;i++){
			sum=sum+a[i];
		}
		average=sum/n;
		printf("average=%.2f\n",average);
		printf(">average:");
		for(i=0;i<n;i++){
			if (a[i]>average){
				printf("%d ",a[i]);
			}
		}
		printf("\n");
	}else{
		printf("invalid value.\n");
	}
	return 0; 
}
